/**
 * ProjectName:  mall-service
 * FileName:  ThemeServiceImpl.java
 * PackageName:  com.blx.service.impl
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.blx.dao.ThemeDao;
import com.blx.entity.Theme;
import com.blx.model.request.ThemeRequest;
import com.blx.service.ThemeService;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  ThemeImpl. <br/>
 * Description: ThemeService接口实现 <br/>
 * @author wangwl
 * 2013-3-4 下午9:02:20 <br/>
 * @version 1.0
 */
@Service
public class ThemeServiceImpl implements ThemeService {

	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private ThemeDao themeDao;

	/**
	 * 保存Theme实体
	 */
	public void saveTheme(Theme theme) {
		themeDao.saveTheme(theme);
	}
	/**
	 * 更新Theme实体
	 */
	public void updateTheme(Theme theme) {
		themeDao.updateTheme(theme);
	}
	/**
	 * 根据id删除Theme
	 */
	public void deleteThemeById(Integer themeId) {
		themeDao.deleteThemeById(themeId);
	}
	/**
	 * 根据id获取Theme
	 */
	public Theme getTheme(Integer themeId) {
		return themeDao.getThemeById(themeId);
	}
	/**
	 * 分页查询Theme
	 */
	public Pagination<Theme> findPageThemeAll(int pageNumber, int pageSize) {
		return themeDao.findPageThemeAll(pageNumber, pageSize);
	}
	
	@Override
	public void getDefaultThemeList(ThemeRequest request) {
		// TODO Auto-generated method stub
	}

}

